// ****************************************************************************
//
// Logic 2: First room
//
// ****************************************************************************

#include "defines.txt"

if (new_room) {
  load.pic(room_no);
  draw.pic(room_no);
  discard.pic(room_no);
  set.horizon(30);

  // The next 6 lines need only be in the first room of the game


// Check what room the player came from and position them on the
// screen accordingly here, e.g:
 if (prev_room_no == 4) {
   position(ego,70,36);
 }

  draw(ego);
  show.pic();
}
 if(f3){
 erase(ego);
 death_type = 2;
 }

if (said("look")) {
  print("This is the path down the cliff. Be careful, falling could be fatal.");
}

if (ego_edge_code == horizon_edge) {  // ego touching horizon
  new.room(4);
}

if (ego_edge_code == bottom_edge) {   // ego touching bottom edge of screen
print("You can't go any further until I finish this part of the game :p");
print("Until next time...");
quit(1); 
}
 return();